package com.sky.mapper;


import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    /**
     * 向订单明细表批量插入数据
     * @param orderDetailList
     */
    void insertOrderDetail(List<OrderDetail> orderDetailList);

    /**
     * 根据订单id查询订单明细
     */
    List<OrderDetail> queryOrderDetailByorderId(Long orderId);



}
